import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import router from '@/router'
import '@/assets/cust-elementplus.scss'
import '@/assets/icon/iconfont.css'
import '@/assets/base.scss'
import clickOutside from '@/directives/click-outside.js'

import pinia from '@/stores/index.ts'

const app = createApp(App)

app.directive('click-outside', clickOutside)

app.use(ElementPlus, {
  locale: zhCn
})
app.use(pinia)
import('@/router/routerConfig.js')
app.use(router);

app.mount('#app')


